package com.itotem.android.everbridge.view;

import com.itotem.android.everbridge.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;

public class BroadcastSettingsView extends TitleView {
	
	Context mContext;
	RelativeLayout mDeliveryMethods, mSenderInformation, mVoiceMailPreference, mBCDeliveryThrottling,
	        mAdditionalBroadcastSettings;
	Button mConfirmBtn, mRequirePINBtn;

	public BroadcastSettingsView(Context context) {
		super(context);
		this.mContext = context;
		initViews();
		initTitleView();
	}
	
	private void initViews() {
		View v = LayoutInflater.from(mContext).inflate(R.layout.broadcast_settings, null);
		mDeliveryMethods = (RelativeLayout)v.findViewById(R.id.broadcast_settings_delivery_methods);//Delivery Methods Layout
		mSenderInformation = (RelativeLayout)v.findViewById(R.id.broadcast_settings_sender_information);//Sender Information Layout
		mVoiceMailPreference = (RelativeLayout)v.findViewById(R.id.broadcast_settings_voice_mail_preference);//Voice Mail Preference Layout
		mBCDeliveryThrottling = (RelativeLayout)v.findViewById(R.id.broadcast_settings_bc_delivery_throttling);//BC Delivery Throttling Layout
		mAdditionalBroadcastSettings = (RelativeLayout)v.findViewById(R.id.broadcast_settings_additional_broadcast_settings);//Additional Broadcast Settings Layout
		mConfirmBtn = (Button)v.findViewById(R.id.broadcast_settings_confirm_btn);//Confirm Button
		mRequirePINBtn = (Button)v.findViewById(R.id.broadcast_settings_require_pin_btn);//Require PIN Button
		addView(v);
	}
	
	private void initTitleView() {
		setLeftBackImageVisible(true);
		setRightImageVisible(false);
		setRightRebroadImageVisible(false);
		setLeftImageVisible(false);
		setText("Broadcast Settings");
	}
	

}
